using UnityEngine;
using System.Collections;

[ExecuteInEditMode]
//[RequireComponent(typeof(TextMesh))]

public class UI_TextColor : MonoBehaviour 
{
	public Color color;
	private Color lastColor;
				
	void Awake()
	{
		color = renderer.material.color;
	}
	
	void Update()
	{
		color.a = 1;
				
		if(color != lastColor)
		{
			renderer.material.color = color;
		}
		
		lastColor = color;

	}
}
